package com.example.ordersystem.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.ordersystem.entity.Food;

import java.util.List;

public interface FoodService extends IService<Food> {

    void add(Food food);

    void del(String id);

    void change(Food food);

    Food selectById(String id);

    Page<Food> selectByPage(int currentPage);

    void reduceStock(String id,String num);

    List<Food> homeGet();

    List<Food> selectByName(String name);

    void delMore(List<Food> foodList);
}
